<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Title')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-title" data-rule="required" class="form-control" name="row[title]" type="text" value="{$row.title|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Coupon_type')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-coupon_type" data-rule="required" class="form-control" name="row[coupon_type]" type="number" value="{$row.coupon_type|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Price_type')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-price_type" data-rule="required" class="form-control" name="row[price_type]" type="number" value="{$row.price_type|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-price" data-rule="required" class="form-control" name="row[price]" type="number" value="{$row.price|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Min_consume')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-min_consume" class="form-control" name="row[min_consume]" type="number" value="{$row.min_consume|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Receive_type')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-receive_type" data-rule="required" class="form-control" name="row[receive_type]" type="number" value="{$row.receive_type|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Receive_start_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-receive_start_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[receive_start_time]" type="text" value="{$row.receive_start_time}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Receive_end_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-receive_end_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[receive_end_time]" type="text" value="{$row.receive_end_time}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Validity_period_type')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-validity_period_type" data-rule="required" class="form-control" name="row[validity_period_type]" type="number" value="{$row.validity_period_type|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Validity_days')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-validity_days" class="form-control" name="row[validity_days]" type="number" value="{$row.validity_days|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Validity_start_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-validity_start_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[validity_start_time]" type="text" value="{$row.validity_start_time}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Validity_end_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-validity_end_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[validity_end_time]" type="text" value="{$row.validity_end_time}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Coupon_count')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-coupon_count" data-rule="required" class="form-control" name="row[coupon_count]" type="number" value="{$row.coupon_count|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Discount_stack_type')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-discount_stack_type" data-rule="required" class="form-control" name="row[discount_stack_type]" type="number" value="{$row.discount_stack_type|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Receive_coupon_count')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-receive_coupon_count" class="form-control" name="row[receive_coupon_count]" type="number" value="{$row.receive_coupon_count|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('User_idss')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user_idss" class="form-control" name="row[user_idss]" type="text" value="{$row.user_idss|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="statusList" item="vo"}
            <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="$row.status"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Create_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-create_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[create_time]" type="text" value="{$row.create_time}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Update_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-update_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[update_time]" type="text" value="{$row.update_time}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Delete_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-delete_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[delete_time]" type="text" value="{$row.delete_time}">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
